* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body {
  background-color: #ececec;
  font-family: 'Roboto', sans-serif;
}

#header {
  background-color: #2e2633;
  text-align: center;
}

ul {
  list-style-type: none;
}

#header a {
  display: block;
  padding: 20px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.4s;
}

#header a:hover{
  background-color: rgba(0,0,0,.1);
}
#header .logo {
  font-size: 2em;
  font-family: 'Poiret One', cursive;
}

#intro {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #c94b4b;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to bottom, rgba(46,35,51,1), rgba(220,233,190,0.5)), url('../img/cover.jpg');  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to bottom, rgba(46,35,51,1), rgba(220,233,190,0.5)), url('../img/cover.jpg'); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  background-size: cover;
  text-align: center;
}

#intro h1 {
  font-size: 2em;
  margin-bottom: 20px;
  font-family: 'Poiret One', cursive;
}

#intro p {
  width: 80%;
  margin: 0 auto;
}

#aside {
  display: none;
}

#gallery {
  padding: 20px;
  text-align: center;
  background-color: #fff;
}

#gallery h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.gallery-container {
  display: grid;
  grid-column: 1fr;
  grid-gap: 20px;
  grid-auto-rows: 200px;
}

.img-container {
  width: 100%;
  /* height: 200px; */
}

.img-container img {
  width: 100%;
  max-height: 100%;
}

#services {
  background-color: #fff;
  padding: 20px;
  text-align: center;
}

#services h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.services-container {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: 1fr;
}

.service {
  padding: 10px;
  box-shadow: 0px 0px 15px rgba(0,0,0,.1);
}

.service .img-container {
  height: 200px;
}

.service .img-container img {
  min-height: 100%;
}

.service h5 {
  font-size: 1.2em;
  padding: 10px 0px;
  text-align: left;
}

.service .call-to-action {
  padding: 20px;
  display: block;
  text-decoration: none;
  color: #fff;
  background-color: crimson;
  margin: 20px 0px 10px;
  transition: background-color 0.4s;
}

.service .call-to-action:hover {
  background-color: #2e2633;
}

#about {
  background-color: #fff;
  padding: 20px;
  text-align: center;
}

#about h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

#about p {
  padding: 10px 0px;
}

#contact {
  padding: 20px;
  text-align: center;
  background-color: aliceblue;
}

#contact h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

#contact form {
  max-width: 600px;
  margin: auto;
}

#contact label {
  display: block;
  margin: 15px 0px 5px 0px;
  text-align: left;
}

#contact input, #contact textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid transparent;
  outline: none;
  background-color: #ececec;
  transition: background-color 0.4s, border 0.4s;
}

#contact input:hover, #contact textarea:hover, #contact input:focus, #contact textarea:focus {
  border: 2px solid gray;
  background-color: #fff;
}

#footer {
  padding: 20px;
  font-size: 1.5em;
  text-align: center;
  background-color: teal;
  color: #fff;
  font-family: 'Poiret One', cursive;
}

@media screen and (min-width: 650px) {

  #header ul {
    display: flex;
    align-items: center;
  }
  #header .logo {
    margin-right: auto;
  }
  #intro {
    height: 400px;
  }
  #aside {
    display: block;
    background-color: #fff;
  }
  #aside h2 {
    display: none;
  }
  #aside a {
    padding: 20px;
    text-decoration: none;
    display: block;
    color: black;    
  }
  #aside ul {
    display: flex;
    justify-content: center;
  }
  .gallery-container {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 300px;
  }
  .gallery-container .img-container:first-child{
    grid-column: 1/4;
  }
  .services-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 400px));
    justify-content: center;
  }

}

@media screen and (min-width: 1200px) {
  body {
    display: grid;
    max-width: 1300px;
    margin: auto;
    grid-template-columns: 220px 950px 150px;
    grid-template-areas: 
    "header intro intro"
    "header gallery aside"
    "header services aside"
    "header about aside"    
    "header contact aside"
    "footer footer footer" 
  }
  #header ul {
    display: flex;
    flex-direction: column;
  }
  #header {
    grid-area: header;
  }
  #intro {
    grid-area: intro;
  }
  #aside {
    grid-area: aside;
    border-left: 1px solid rgba(0,0,0,.1);
  }
  #aside h2 {
    display: block;
    margin-bottom: 20px;
    padding: 15px;
    font-size: 1.5em;
  }
  #aside ul {
    flex-direction: column;
  }
  #gallery {
    grid-area: gallery;
  }
  #services {
    grid-area: services;
  }
  #about {
    grid-area: about;
  }
  #contact {
    grid-area: contact;
  }
  #footer {
    grid-area: footer;
  }


}